package com.ruoyi.webs.utils;


public class DelSpaceUtil {
    public static String delSpace(String str) {
        str = str.trim();
        while (str.startsWith("　")) {
            str = str.substring(1, str.length()).trim();
        }
        while (str.endsWith("　")) {
            str = str.substring(0, str.length() - 1).trim();
        }
        return str;
    }


    public static boolean isSenior(String str) {
        if (!str.contains("不") && !str.contains("否")) {
            if (str.contains("是"))
                return true;
            if (str.contains("高"))
                return true;
            if (str.contains("处")) {
                return true;
            }
            return false;
        }

        return false;
    }


    public static void main(String[] args) throws Exception {
        System.out.println(isSenior(""));
        System.out.println("abctest　".trim());
        System.out.println(delSpace("abctest　"));
    }
}